package com.doan.covua;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.doan.covua.ChessActivity;
import com.doan.covua.R;


public class Logo extends Activity {
    protected int _logoTime = 3000;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.logo);
        // Thread for display logo
        Thread logoThread = new Thread() {
            @Override
            public void run() {
                try {
                    sleep(_logoTime);
                } catch (InterruptedException e) {
                } finally {
                    Intent mainIntent = new Intent(Logo.this, ChessActivity.class);
                    Logo.this.startActivity(mainIntent);
                    Logo.this.finish();
                    stop();
                }
            }
        };
        logoThread.start();
    }
}
